home *** CD-ROM | disk | FTP | other *** search
/ PC Player 2004 May / pc player 2004-05.iso / Demos / FarCry / Data1.cab / _161D5516D68B474E917358D52DF11752 < prev    next >
Encoding:
Text File  |  2004-01-06  |  677 b   |  25 lines

  1. // ===============================================================
  2. // Vertex Program:
  3. // Description:  2D shadow map pass
  4. // Last Update: 14/08/2003
  5. // Coder: Andrey Honich
  6. // ===============================================================
  7.  
  8.       #include "../CGVPMacro.csi"
  9.  
  10.       VertAttributes { POSITION_3 TEXCOORD0_2 }
  11.  
  12.       NoFog      
  13.       MainInput { VIEWPROJ_MATRIX, uniform float4x4 TexGen0 }
  14.       DeclarationsScript
  15.       {
  16.         IN_T0
  17.         OUT_T0_T1
  18.       }
  19.       PositionScript = PosCommon                 
  20.       CoreScript
  21.       {
  22.         OUT.Tex0 = mul(TexGen0, vPos);          
  23.         OUT.Tex1.xy = IN.TexCoord0.xy;
  24.       }
  25.